// vite.config.js
import { defineConfig } from "file:///D:/sofeWare/code/pi/11-04/1029-1/front/node_modules/vite/dist/node/index.js";
import requireTransform from "file:///D:/sofeWare/code/pi/11-04/1029-1/front/node_modules/vite-plugin-require-transform/dist/index.mjs";
import vue from "file:///D:/sofeWare/code/pi/11-04/1029-1/front/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import { resolve } from "path";
import Components from "file:///D:/sofeWare/code/pi/11-04/1029-1/front/node_modules/unplugin-vue-components/dist/vite.mjs";
import { VantResolver } from "file:///D:/sofeWare/code/pi/11-04/1029-1/front/node_modules/unplugin-vue-components/dist/resolvers.mjs";
var __vite_injected_original_dirname = "D:\\sofeWare\\code\\pi\\11-04\\1029-1\\front";
var pathResolve = (dir) => resolve(__vite_injected_original_dirname, dir);
var vite_config_default = defineConfig({
  //i18N警告
  define: {
    __VUE_I18N_FULL_INSTALL__: true,
    __VUE_I18N_LEGACY_API__: true,
    __INTLIFY_PROD_DEVTOOLS__: false
  },
  plugins: [
    vue(),
    Components({
      resolvers: [VantResolver()]
    }),
    requireTransform({
      fileRegex: /.js$|.vue$/
    })
  ],
  resolve: {
    alias: {
      "@": pathResolve("./src")
      // 新增
    }
  },
  server: {
    proxy: {
      "/api": {
        target: "https://sea.im/api",
        // target: "http://localhost:7125/api",
        changeOrigin: true,
        //支持跨域
        rewrite: (path) => path.replace(/^\/api/, "")
        //重写路径,替换/api
      }
    }
    // open: true,
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFxzb2ZlV2FyZVxcXFxjb2RlXFxcXHBpXFxcXDExLTA0XFxcXDEwMjktMVxcXFxmcm9udFwiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW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